<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.HashSet" %>
<%@ page import="java.util.Set" %>
<%@ page import="java.io.BufferedReader" %>
<%@ page import="java.io.IOException" %>
<%@ page import="java.io.InputStream" %>
<%@ page import="java.io.InputStreamReader" %>
<%@ page import="java.net.HttpURLConnection" %>
<%@ page import="java.net.MalformedURLException" %>
<%@ page import="java.net.URL" %>
<%@ page import="com.sonalb.net.http.cookie.Client" %>
<%@ page import="com.sonalb.net.http.cookie.CookieJar" %>
<%@ page import="com.sonalb.net.http.cookie.Cookie" %>
<%

    String nodeid = request.getParameter("node");
    System.out.println("当前异步父节点：" + nodeid);
System.out.println(request.getParameter("classid"));
String outStr = null;  
  //TODO 根据nodeid ,动态生成json数据返回客户端
		if (null != nodeid) {
			if (nodeid.equals("/")) {
				outStr = "[{\"text\" : \"应用\",\"leaf\" : false,\"id\" : \"/全省共享资源/应用1\",\"classid\" : \"/全省共享资源/应用\",\"sortorder\" : \"1256784726371\",\"allowDrop\" : true,\"cls\" : \"folder\"}]";
			} else {
				outStr = "[" + "{" + "\"text\" : \"频道\"," + "\"leaf\" : false,"
						+ "\"id\" : \"/全省共享资源/频道1234\","
						+ "\"classid\" : \"/全省共享资源/频道123\","
						+ "\"sortorder\" : \"1258085950480\","
						+ "\"allowDrop\" : true," + "\"cls\" : \"folder\""
						+ "}" + "]";
			}
		} else {
			outStr = "[" + "{" + "\"text\" : \"频道\"," + "\"leaf\" : false,"
					+ "\"id\" : \"/全省共享资源/频道1\","
					+ "\"classid\" : \"/全省共享资源/频道1\","
					+ "\"sortorder\" : \"1258085950480\","
					+ "\"allowDrop\" : true," + "\"cls\" : \"folder\"" + "}"
					+ "]";
		}
		if (null != nodeid&&nodeid.equals("/全省共享资源/频道1")) {
			outStr = "[{\"text\" : \"fsll_jane_test(搜索)\",\"leaf\" : true,\"id\" :\"/全省共享资源/频道/@fsll_jane_test\",\"sortorder\" : \"1260439252089\",\"contentUrl\" : \"http://wap.163.com\",\"layout\" : \"T\",\"allowDrop\" : true,\"cls\" : \"file\"}]";
		}
out.println(outStr);
%>
